import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyVue from '@/components/MyVue'
import Button from '@/components/Button'
import User from '@/components/User'
import Department from '@/components/Department'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/my',
      component: MyVue
    },
    {
      path: '/btn',
      component: Button
    }
    ,
    {
      path: '/user',
      component: User
    },
    {
      path: '/dept',
      component: Department
    }
  ]
})
